package com.mingmen.canting.modeldata;

import android.net.Uri;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Data {

    private String avatar;
    private String nickname;
    private String createTime;
    private String content;
    private List<Uri> pictureList;
    private List<Uri> pictureThumbList;

    public static List<Data> get() {
        List<Data> dataList = new ArrayList<>();

        Data data1 = new Data();
        data1.avatar = "http://b162.photo.store.qq.com/psb?/V14EhGon4cZvmh/z2WukT5EhNE76WtOcbqPIgwM2Wxz4Tb7Nub.rDpsDgo!/b/dOaanmAaKQAA";

        data1.nickname = "苦涩";
        data1.createTime = "昨天 09:59";
        data1.content = "唐僧还是厉害啊。为什么？有宝马";
        data1.pictureList = Arrays.asList(
                Uri.parse("https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2534506313,1688529724&fm=26&gp=0.jpg"),
                Uri.parse("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1598073881596&di=e5fad1337a05fb50f6177f12cc4ef0e5&imgtype=0&src=http%3A%2F%2Fa0.att.hudong.com%2F56%2F12%2F01300000164151121576126282411.jpg"),
                Uri.parse("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1598073881596&di=bd5546eea0e5ba6634017efb6e7cf4ca&imgtype=0&src=http%3A%2F%2Fa2.att.hudong.com%2F36%2F48%2F19300001357258133412489354717.jpg"),
                Uri.parse("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1598073881596&di=01f38110dc7653120ac3fa24d2353b4a&imgtype=0&src=http%3A%2F%2Fa1.att.hudong.com%2F05%2F00%2F01300000194285122188000535877.jpg"),

                Uri.parse("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1598073881595&di=c7b4e02a78722833cb934e6da8a665dc&imgtype=0&src=http%3A%2F%2Fa4.att.hudong.com%2F22%2F59%2F19300001325156131228593878903.jpg"),

                Uri.parse("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1598073881594&di=b5919019c35d1332874067baa7d778ff&imgtype=0&src=http%3A%2F%2Fa1.att.hudong.com%2F62%2F02%2F01300542526392139955025309984.jpg"),
                Uri.parse("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1598073881594&di=bb10518d7b77de29e6d23a7293a73ec6&imgtype=0&src=http%3A%2F%2Fa2.att.hudong.com%2F86%2F10%2F01300000184180121920108394217.jpg")

        );
        data1.pictureThumbList = Arrays.asList(

                Uri.parse("https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2534506313,1688529724&fm=26&gp=0.jpg"),
                Uri.parse("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1598073881596&di=e5fad1337a05fb50f6177f12cc4ef0e5&imgtype=0&src=http%3A%2F%2Fa0.att.hudong.com%2F56%2F12%2F01300000164151121576126282411.jpg"),
                Uri.parse("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1598073881596&di=bd5546eea0e5ba6634017efb6e7cf4ca&imgtype=0&src=http%3A%2F%2Fa2.att.hudong.com%2F36%2F48%2F19300001357258133412489354717.jpg"),
                Uri.parse("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1598073881596&di=01f38110dc7653120ac3fa24d2353b4a&imgtype=0&src=http%3A%2F%2Fa1.att.hudong.com%2F05%2F00%2F01300000194285122188000535877.jpg"),

                Uri.parse("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1598073881595&di=c7b4e02a78722833cb934e6da8a665dc&imgtype=0&src=http%3A%2F%2Fa4.att.hudong.com%2F22%2F59%2F19300001325156131228593878903.jpg"),

                Uri.parse("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1598073881594&di=b5919019c35d1332874067baa7d778ff&imgtype=0&src=http%3A%2F%2Fa1.att.hudong.com%2F62%2F02%2F01300542526392139955025309984.jpg"),
                Uri.parse("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1598073881594&di=bb10518d7b77de29e6d23a7293a73ec6&imgtype=0&src=http%3A%2F%2Fa2.att.hudong.com%2F86%2F10%2F01300000184180121920108394217.jpg")

                );


        if (System.currentTimeMillis() % 3 == 0) {
            dataList.add(data1);
            /*dataList.add(data2);
            dataList.add(data3);
            dataList.add(data4);
            dataList.add(data6);*/
        } else if (System.currentTimeMillis() % 3 == 1) {
          /*  dataList.add(data5);
            dataList.add(data6);
            dataList.add(data2);
            dataList.add(data4);
            dataList.add(data3);*/
            dataList.add(data1);
        } else {
            dataList.add(data1);
    /*        dataList.add(data3);
            dataList.add(data4);
            dataList.add(data5);
            dataList.add(data6);*/
        }

        return dataList;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<Uri> getPictureList() {
        return pictureList;
    }

    public void setPictureList(List<Uri> pictureList) {
        this.pictureList = pictureList;
    }

    public List<Uri> getPictureThumbList() {
        return pictureThumbList;
    }

    public void setPictureThumbList(List<Uri> pictureThumbList) {
        this.pictureThumbList = pictureThumbList;
    }
}
